package com.owen.springboot.smartparkingms.module.app.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.sql.Timestamp;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.owen.springboot.smartparkingms.common.model.PageBean;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author Owen
 * @since 2022-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("app_park_status")
public class ParkStatus extends PageBean implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private String spaceId;

    private String status;

    private String plateNumber;

    private Long parkId;

    /**
     * 非数据库字段
     */
    @TableField(exist = false)
    private Integer type;

    /**
     * 非数据库字段
     */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp gmtInto;
}
